package com.portal.mq.service;

public interface RabbitMqService {
    void declareQueueAndExchange(String queue, String exchange);
    void sendMessage(String exchange, String routingKey, Object message);

    /**
     * 激活账户
     *
     * @param userId 用户id
     * @return 保存结果
     */
    public int activeUser(Long userId);

    /**
     * 通过用户ID删除用户
     *
     * @param userId 用户ID
     * @return 结果
     */
    public int deleteUserById(Long userId);

}
